<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.tailwindcss.com"></script>
    <script type="text/javascript">
        window.onload = function () {
            var urlparams = new URLSearchParams(window.location.search);
            var isLogin = urlparams.get("isLogin");
            if(isLogin==0){
                alert("账号或密码错误");
            }
        }
    </script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <title>登录页面</title>
</head>
<body class="bg-gray-100 flex justify-center items-center min-h-screen">
<div class="bg-white p-8 rounded shadow-md w-full max-w-md">
    <h1 class="text-3xl font-bold mb-6 text-center">订单管理系统</h1>
    <h2 class="text-2xl font-bold mb-4 text-center">登录</h2>
    <form action="/homework/login.User" method="post">
        <div class="mb-4">
            <label  class="block text-gray-700 font-bold mb-2">账号</label>
            <input type="text" name="account" class="w-full border border-gray-300 p-2 rounded" placeholder="请输入账号">
        </div>
        <div class="mb-4">
            <label  class="block text-gray-700 font-bold mb-2">密码</label>
            <input type="text" name="password" class="w-full border border-gray-300 p-2 rounded" placeholder="请输入密码">
        </div>
        <button type="submit" class="w-full bg-blue-500 text-white p-2 rounded hover:bg-blue-600 transition-colors">登录</button>
        <a href="regist.html" class="block text-center text-blue-500 mt-2 hover:underline">注册</a>
    </form>
</div>
</body>
</html>